function http({
    url,
    success
}){
    wx.request({
        url,
        data: {},
        method: 'GET', // OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
        // header: {}, // 设置请求的 header
        success: function(res){
            success(res)
        }
    })
}
module.exports = http